/**
 * Project Name:Micro-Services-Common
 * File Name   :Slf4jLoggerAdapter.java
 * Package Name:com.micro.services.common.logger.slf4j
 * Date:2015年9月8日上午12:29:52
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package com.micro.services.common.logger.slf4j;

import java.io.File;

import com.micro.services.common.logger.Level;
import com.micro.services.common.logger.Logger;
import com.micro.services.common.logger.LoggerAdapter;

/**
 * ClassName:Slf4jLoggerAdapter <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason :TODO ADD REASON. <br/>
 * Date :2015年9月8日 上午12:29:52 <br/>
 * 
 * @author :http://my.oschina.net/httpssl
 * @email :491835898@QQ.COM
 * @since :JDK 1.7
 * @see
 */
public class Slf4jLoggerAdapter implements LoggerAdapter
{
	private Level	level;
	private File	file;

	@Override
	public Logger getLogger(Class<?> key) {
		// TODO Auto-generated method stub
		return new Slf4jLogger(org.slf4j.LoggerFactory.getLogger(key));
	}

	@Override
	public Logger getLogger(String key) {
		// TODO Auto-generated method stub
		return new Slf4jLogger(org.slf4j.LoggerFactory.getLogger(key));
	}

	@Override
	public void setLevel(Level level) {
		// TODO Auto-generated method stub
		this.level = level;
	}

	@Override
	public Level getLevel() {
		// TODO Auto-generated method stub
		return this.level;
	}

	@Override
	public File getFile() {
		// TODO Auto-generated method stub
		return this.file;
	}

	@Override
	public void setFile(File file) {
		// TODO Auto-generated method stub
		this.file = file;
	}

}
